package com.clei.netty.sync.dto;

import io.netty.channel.EventLoopGroup;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * file sync client 参数
 *
 * @author Y
 * @date 2024-08-16
 **/
public class ClientParam {
    /**
     * EventLoopGroup
     */
    private final EventLoopGroup bossGroup;

    /**
     * AtomicInteger
     */
    private final AtomicInteger seqCounter = new AtomicInteger();

    /**
     * 客户端文件路径
     */
    private final String clientFilePath;

    public ClientParam(EventLoopGroup bossGroup, String clientFilePath) {
        this.bossGroup = bossGroup;
        this.clientFilePath = clientFilePath;
    }

    public EventLoopGroup getBossGroup() {
        return bossGroup;
    }

    public AtomicInteger getSeqCounter() {
        return seqCounter;
    }

    public String getClientFilePath() {
        return clientFilePath;
    }
}
